/*
 * np_init.c
 *
 *  Created on: Feb 5, 2011
 *      Author: jeff_zheng
 */
#include "np_common.h"

volatile int g_np_common_init_return = -1;
void np_common_init_inner()
{
	if(0!=np_time_lib_init())
	{
		return;
	}
	g_np_common_init_return = 0;
	return;
}

pthread_once_t g_np_common_init_once = PTHREAD_ONCE_INIT;
int np_common_init()
{
	pthread_once(&g_np_common_init_once, np_common_init_inner);
	return g_np_common_init_return;
}
